//除了首页和登录路由
//动态展示的其他全部路由
export const menu = [
  {
    path: '/product',
    component: () => import('@/pages/Product/index.vue'),
    name: 'product',
    redirect: '/product/list',
    meta: {
      title: "产品管理",
    },
    children: [
      {
        path: 'list',
        component: () => import('@/pages/Product/List/index.vue'),
        name: 'list',
        meta: {
          title: "产品列表",
        },
      },
      {
        path: 'category',
        component: () => import('@/pages/Product/Category/index.vue'),
        name: 'category',
        meta: {
          title: "产品分类",
        },
      },
      {
        path: 'addproduct',
        component: () => import('@/pages/Product/List/Addproduct/index.vue'),
        name: 'addproduct',
        meta: {
          //配置高亮
          activeMenu: '/product/list',
          title: "添加商品",
        }
      }
    ]
  },
  {
    path: '/order',
    component: () => import('@/pages/Order/index.vue'),
    name: 'order',
    redirect: '/order/order-list',
    meta: {
      title: "订单管理",
    },
    children: [
      {
        path: 'order-list',
        component: () => import('@/pages/Order/List/index.vue'),
        name: 'order-list',
        meta: {
          title: "订单列表",
        },
      },
      {
        path: 'collect',
        component: () => import('@/pages/Order/Collect/index.vue'),
        name: 'collect',
        meta: {
          title: "汇总清单",
        },
      },
      {
        path: "contract",
        name: "contract",
        component: () => import('@/pages/Order/Contract/index.vue'),
        meta: {
          title: "订单审核",
        },
      },
    ]
  },
  {
    path: '/advert',
    component: () => import('@/pages/Advert/index.vue'),
    name: 'advert',
    redirect: '/advert/advert-list',
    meta: {
      title: "广告分类",
    },
    children: [
      {
        path: 'advert-list',
        component: () => import('@/pages/Advert/List/index.vue'),
        name: 'advert-list',
        meta: {
          title: "广告列表",
        },
      },
    ]
  },
  {
    path: "/system",
    name: "system",
    component: () => import('@/pages/SystemManage/index.vue'),
    redirect: "/system/role",
    meta: {
      title: "系统管理",
    },
    children: [
      {
        path: "role",
        name: "role",
        component: () => import('@/pages/SystemManage/Role/index.vue'),
        meta: {
          title: "角色管理",
        },
      },
      {
        path: "department",
        name: "department",
        component: () => import('@/pages/SystemManage/Department/index.vue'),
        meta: {
          title: "部门管理",
        },
      },
    ],
  },
]